
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<link type="text/css" rel="stylesheet" href="${createLinkTo(dir:'css/csslxh',file:'lxh.css')}">
	<title>Edit Menuinfo</title>
</head>

<style>
	.tableGray td { height:26px } 
</style>

<body style="margin:0; overflow:auto">

<table width="100%" height="23" border="0" cellpadding="0" cellspacing="0" background="${createLinkTo(dir:'imagesmain',file:'grayListBg.gif')}">
  <tr>       
	<td width="50%" style="padding-top:2px;padding-left:10px;padding-right:15px" nowrap>
		<img src="${createLinkTo(dir:'imageslxh',file:'post.gif')}">
		修改菜单信息
	</td>
	<td>&nbsp;</td>		
  </tr>  
</table>

<g:if test="${flash.message}">
	<div class="message">${flash.message}</div>
</g:if>

<g:hasErrors bean="${menuinfoInstance}">
	<div class="errors">
		<g:renderErrors bean="${menuinfoInstance}" as="list" />
	</div>
</g:hasErrors>

<g:form action="update" method="post" style="display:inline">
	<input type="hidden" name="id" value="${menuinfoInstance?.id}" />
	<input type="hidden" name="version" value="${menuinfoInstance?.version}" />
	    	               
	        	<table align="center" class="tableGray" cellpadding="0" cellspacing="1" style="margin-top:5px;">

	                            <tr>
	                                <td width="40%" align="right" bgcolor="#f6f6f6">
	                                    <label for="menuname">菜单名称:</label>
	                                </td>
	                                <td class="value ${hasErrors(bean:menuinfoInstance,field:'menuname','errors')}">
	                                    <input type="text" maxlength="50" id="menuname" name="menuname" value="${fieldValue(bean:menuinfoInstance,field:'menuname')}" class="textccc" />
	                                </td>
	                            </tr> 
	                
	                            <tr>
	                                <td width="40%" align="right" bgcolor="#f6f6f6">
	                                    <label for="url">功能链接:</label>
	                                </td>
	                                <td class="value ${hasErrors(bean:menuinfoInstance,field:'url','errors')}">
	                                    <input type="text" maxlength="100" id="url" name="url" value="${fieldValue(bean:menuinfoInstance,field:'url')}" class="textccc" size="40"/>
	                                </td>
	                            </tr> 
	                
	                            <tr>
	                                <td width="40%" align="right" bgcolor="#f6f6f6">
	                                    <label for="isleaf">是否叶子:</label>
	                                </td>
	                                <td class="value ${hasErrors(bean:menuinfoInstance,field:'isleaf','errors')}">
	                                    <g:select id="isleaf" name="isleaf" from="${menuinfoInstance.constraints.isleaf.inList}" value="${menuinfoInstance.isleaf}" ></g:select>
	                                </td>
	                            </tr> 
	                
	                            <tr>
	                                <td width="40%" align="right" bgcolor="#f6f6f6">
	                                    <label for="isstop">是否停用:</label>
	                                </td>
	                                <td class="value ${hasErrors(bean:menuinfoInstance,field:'isstop','errors')}">
	                                    <g:select id="isstop" name="isstop" from="${menuinfoInstance.constraints.isstop.inList}" value="${menuinfoInstance.isstop}" ></g:select>
	                                </td>
	                            </tr> 
	                
	                            <tr>
	                                <td width="40%" align="right" bgcolor="#f6f6f6">
	                                    <label for="pmenu">父级菜单:</label>
	                                </td>
	                                <td class="value ${hasErrors(bean:menuinfoInstance,field:'pmenu','errors')}">
	                                    <g:select optionKey="id" from="${Menuinfo.list()}" name="pmenu.id" value="${menuinfoInstance?.pmenu?.id}" noSelection="['null':'']"></g:select>
	                                </td>
	                            </tr> 
	                
	                            <tr>
	                                <td width="40%" align="right" bgcolor="#f6f6f6">
	                                    <label for="ordernum">排序序号:</label>
	                                </td>
	                                <td class="value ${hasErrors(bean:menuinfoInstance,field:'ordernum','errors')}">
	                                    <input type="text" id="ordernum" name="ordernum" value="${fieldValue(bean:menuinfoInstance,field:'ordernum')}" class="textccc" />
	                                </td>
	                            </tr> 

	            
	    <tr>
	    	<td align="center" colspan="2" style="height:30">
	    		<input type="submit" value="<g:message code='lxh.btn.update'/>" class="btnGray">&nbsp;
	    		<input type="button" value="<g:message code='lxh.btn.cancel'/>" class="btnGray" onclick="history.back()">
	    	</td>
	    </tr>
	    
	</table>
	
</g:form>

                  

</body>
</html>
